package com.baozhun.mall.common.util.eventbus

import java.io.Serializable

/**
 * @Title: 事件类
 * @Description:
 * @Author:
 * @Since:2023.7.5
 * @Version:1.0.0
 */
class EventMessage<T> : Serializable {
    var eventCode //事件编码
            : Int
    var data //事件携带数据，可以为空
            : T? = null

    constructor(eventCode: Int) {
        this.eventCode = eventCode
    }

    constructor(eventCode: Int, data: T?) {
        this.eventCode = eventCode
        this.data = data
    }
}